#!/usr/bin/ruby
    require 'rubygems'
    require 'simple-rss'
    require 'open-uri'

FEED_URL = ARGV[0]

if FEED_URL.nil?
  exit
end

rss = SimpleRSS.parse open(FEED_URL)

puts rss.channel.title
rss.items.first(5).each do |i|
  puts '   ' + i.title
end